home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000019_fdc@columbia.edu_Wed Nov 26 10:29:34 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Quick Question on switch statement and :1, :2
  5. Date: 26 Nov 2003 15:15:31 GMT
  6. Organization: Columbia University
  7. Lines: 17
  8. Message-ID: <slrnbs9gsi.c9g.fdc@sesame.cc.columbia.edu>
  9. References: <f0bb0f39.0311260516.356db920@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1069859731 23660 128.59.59.56 (26 Nov 2003 15:15:31 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 26 Nov 2003 15:15:31 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14695
  17.  
  18. In article <f0bb0f39.0311260516.356db920@posting.google.com>,
  19. newexpectuser wrote:
  20. : I am using the following and was wondering if the :1 and :2 are just
  21. : labels to clarify code. I am guessing that the "if < \v(input).." says
  22. : if the return code of the minput statement is a 1, to exit with a
  23. : return code of 1, otherwise check continue ?
  24. Read the manual or type "help switch" to find out how the SWITCH command
  25. works.  Type "help xxx" to find out how any command xxx works.
  26.  
  27. : If that is true, then I think the :1 and :2 are nothing more than
  28. : labels and have no affect on the script itself ?
  29. The SWITCH command is explained on page 385 of "Using C-Kermit".  You
  30. can't learn a programming language without a manual.
  31.  
  32. - Frank
  33.